export const compose = (...funcs) => {
  if (funcs.length === 0) {
    return (args) => args;
  }

  if (funcs.length === 1) {
    return funcs[0];
  }

  console.log('funcs: ', funcs);
  return funcs.reduce((a, b) => (...args) => a(b(...args)));
}